package charts.series.dots ;

class DotFactory {
	
	public static function make ( index: Int, style:Properties ):PointDotBase {
		
		// //tr.aces( 'dot factory type', style.get('type'));
		
		switch( style.get('type') )
		{
			case 'star':
				return new Star(index, style);
				/*break*/
				
			case 'bow':
				return new Bow(index, style);
				/*break*/
			
			case 'anchor':
				return new Anchor(index, style);
				/*break*/
			
			case 'dot':
				return new Point(index, style);
				/*break*/
			
			case 'solid-dot':
				return new PointDot(index, style);
				/*break*/
				
			case 'hollow-dot':
				return new Hollow(index, style);
				/*break*/
				
			default:
			//
			// copy out the bow tie and then remove
			//
				return new Point(index, style);
				// return new scat(style);
				/*break*/
		}
	}
}
